<?php

use yii\helpers\Html;
use kartik\widgets\ActiveForm;

/**
 * @var yii\web\View $this
 * @var yiike\store\merchant\models\OrderStoreSearch $model
 * @var yii\widgets\ActiveForm $form
 */
?>

<div class="order-store-search box box-info">
    <div class="box-header">
        <div class="box-title">筛选</div>
    </div>
    <div class="box-body">
        <?php $form = ActiveForm::begin([
            'action' => ['index'],
            'method' => 'get',
            'type' => ActiveForm::TYPE_HORIZONTAL,
            'formConfig' => ['labelSpan' => 3, 'deviceSize' => ActiveForm::SIZE_SMALL]
        ]); ?>
        <div class="col-lg-4">
            <?= $form->field($model, 'trade_id')->hint('') ?>

            <?= $form->field($model, 'title')->hint('') ?>

            <?=$form->field($model, 'express_no') ?>

            <?=$form->field($model, 'status')->dropDownList($model->status_option[1]) ?>
        </div>
        <div class="col-lg-4">

            <?=$form->field($model, 'created_at')->widget('\kartik\daterange\DateRangePicker', ['presetDropdown' => true]) ?>


            <?=$form->field($model, 'pay_at')->widget('\kartik\daterange\DateRangePicker', ['presetDropdown' => true]) ?>

            <?=$form->field($model, 'express_at')->widget('\kartik\daterange\DateRangePicker', ['presetDropdown' => true]) ?>

            <?=$form->field($model, 'finished_at')->widget('\kartik\daterange\DateRangePicker', ['presetDropdown' => true]) ?>
        </div>
        <div class="col-lg-4">

            <?=$form->field($model, 'is_pay')->dropDownList($model->ispay_option) ?>

            <?=$form->field($model, 'is_refund')->dropDownList($model->isrefund_option) ?>

        </div>


        <?php // echo $form->field($model, 'consumer_code') ?>




        <div class="row"></div>
        <div class="form-group col-lg-4">
            <div class="col-lg-offset-3 col-lg-10">
                <?= Html::submitButton('筛选', ['class' => 'btn btn-primary']) ?>
                <?= Html::a('重置', \yii\helpers\Url::to('index'), ['class' => 'btn btn-default']) ?>
            </div>
        </div>

        <?php ActiveForm::end(); ?>
    </div>
</div>
